package day15;

public class testgenerics {
    public static void main(String[] args) {
        String[] s={"大哥","二哥"};
        print(s);
        Integer[] i={1,2,3};
        print(i);
        Double[] d={1.0,1.1,1.2};
        print(d);
    }

    private static<E> void print(E[] g) {
        for(E p:g){
            System.out.println(p);
        }
    }
}
